package avicit.im.lantop.employeeshortcutkeys.domain;

import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.domain.BeanBase;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: AVICIT_IM_LANTOP_V1.0
 * * @description: 快捷键设置
 * * @author: Mr.An
 * * @create: 2019-06-05 14:51
 **/
@Entity
@Table(name = "LANTOP_USER_EMPLOYEE")
public class EmployeeShortcutKeys extends BeanBase {
    @LogField
    @FieldRemark(column = "ID", field = "id", name = "ID")
    private  String  ID;
    @LogField
    @FieldRemark(column = "SHORTCUT_KEY_NAME", field = "shortcutKeyName", name = "快捷键名称")
    private  String shortcutKeyName;
    @LogField
    @FieldRemark(column = "LINK_ADDRESS", field = "linkAddress", name = "快捷键链接地址")
    private  String linkAddress;
    @LogField
    @FieldRemark(column = "SHORTCUT_KEY_PICTURE", field = "shortcutKeyPicture", name = "链接图片")
    private  String shortcutKeyPicture;
    @LogField
    @FieldRemark(column = "ORG_ID", field = "orgId", name = "单位ID")
    private  String  orgId;
    @LogField
    @FieldRemark(column = "SYS_ID", field = "sysId", name = "SYSID")
    private  String  sysId;
    @LogField
    @FieldRemark(column = "SECRET_LEVEL", field = "secretLevel", name = "密级")
    private  String  secretLevel;
    private String sysApplicationId; // 多应用ID
    private String attribute01; // 预留字段1
    private String attribute02; // 预留字段2
    private String attribute03; // 预留字段3
    private String attribute04; // 预留字段4
    private String attribute05; // 预留字段5
    private String attribute06; // 预留字段6
    private String attribute07; // 预留字段7
    private String attribute08; // 预留字段8
    private Date attribute09; // 预留字段9
    private Date attribute10; // 预留字段10
    private BigDecimal attribute11; // 预留字段11
    private BigDecimal attribute12; // 预留字段12

    @Id
    @Column(name = "ID", length = 50, nullable = false)
    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }
    @Column(name = "SHORTCUT_KEY_NAME", length = 50)
    public String getShortcutKeyName() {
        return shortcutKeyName;
    }

    public void setShortcutKeyName(String shortcutKeyName) {
        this.shortcutKeyName = shortcutKeyName;
    }
    @Column(name = "LINK_ADDRESS", length = 500)
    public String getLinkAddress() {
        return linkAddress;
    }

    public void setLinkAddress(String linkAddress) {
        this.linkAddress = linkAddress;
    }
    @Column(name = "SHORTCUT_KEY_PICTURE", length = 500)
    public String getShortcutKeyPicture() {
        return shortcutKeyPicture;
    }

    public void setShortcutKeyPicture(String shortcutKeyPicture) {
        this.shortcutKeyPicture = shortcutKeyPicture;
    }
    @Column(name = "ORG_ID", length = 50)
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    @Column(name = "SYS_ID", length = 50)
    public String getSysId() {
        return sysId;
    }

    public void setSysId(String sysId) {
        this.sysId = sysId;
    }
    @Column(name = "SECRET_LEVEL", length = 50)
    public String getSecretLevel() {
        return secretLevel;
    }

    public void setSecretLevel(String secretLevel) {
        this.secretLevel = secretLevel;
    }
    @Column(name = "SYS_APPLICATION_ID", length = 50)
    public String getSysApplicationId() {
        return sysApplicationId;
    }

    public void setSysApplicationId(String sysApplicationId) {
        this.sysApplicationId = sysApplicationId;
    }
    @Column(name = "ATTRIBUTE_01", length = 50)
    public String getAttribute01() {
        return attribute01;
    }

    public void setAttribute01(String attribute01) {
        this.attribute01 = attribute01;
    }
    @Column(name = "ATTRIBUTE_02", length = 50)
    public String getAttribute02() {
        return attribute02;
    }

    public void setAttribute02(String attribute02) {
        this.attribute02 = attribute02;
    }
    @Column(name = "ATTRIBUTE_03", length = 50)
    public String getAttribute03() {
        return attribute03;
    }

    public void setAttribute03(String attribute03) {
        this.attribute03 = attribute03;
    }
    @Column(name = "ATTRIBUTE_04", length = 50)
    public String getAttribute04() {
        return attribute04;
    }

    public void setAttribute04(String attribute04) {
        this.attribute04 = attribute04;
    }
    @Column(name = "ATTRIBUTE_05", length = 50)
    public String getAttribute05() {
        return attribute05;
    }

    public void setAttribute05(String attribute05) {
        this.attribute05 = attribute05;
    }
    @Column(name = "ATTRIBUTE_06", length = 50)
    public String getAttribute06() {
        return attribute06;
    }

    public void setAttribute06(String attribute06) {
        this.attribute06 = attribute06;
    }
    @Column(name = "ATTRIBUTE_07", length = 50)
    public String getAttribute07() {
        return attribute07;
    }

    public void setAttribute07(String attribute07) {
        this.attribute07 = attribute07;
    }
    @Column(name = "ATTRIBUTE_08", length = 50)
    public String getAttribute08() {
        return attribute08;
    }

    public void setAttribute08(String attribute08) {
        this.attribute08 = attribute08;
    }
    @Column(name = "ATTRIBUTE_09", length = 50)
    public Date getAttribute09() {
        return attribute09;
    }

    public void setAttribute09(Date attribute09) {
        this.attribute09 = attribute09;
    }
    @Column(name = "ATTRIBUTE_10", length = 50)
    public Date getAttribute10() {
        return attribute10;
    }

    public void setAttribute10(Date attribute10) {
        this.attribute10 = attribute10;
    }
    @Column(name = "ATTRIBUTE_11", length = 50)
    public BigDecimal getAttribute11() {
        return attribute11;
    }

    public void setAttribute11(BigDecimal attribute11) {
        this.attribute11 = attribute11;
    }
    @Column(name = "ATTRIBUTE_12", length = 50)
    public BigDecimal getAttribute12() {
        return attribute12;
    }

    public void setAttribute12(BigDecimal attribute12) {
        this.attribute12 = attribute12;
    }
    @Column(name = "ATTRIBUTE_13", length = 50)
    public BigDecimal getAttribute13() {
        return attribute13;
    }

    public void setAttribute13(BigDecimal attribute13) {
        this.attribute13 = attribute13;
    }
    @Column(name = "ATTRIBUTE_14", length = 50)
    public BigDecimal getAttribute14() {
        return attribute14;
    }

    public void setAttribute14(BigDecimal attribute14) {
        this.attribute14 = attribute14;
    }
    @Column(name = "ATTRIBUTE_15", length = 50)
    public BigDecimal getAttribute15() {
        return attribute15;
    }

    public void setAttribute15(BigDecimal attribute15) {
        this.attribute15 = attribute15;
    }

    private BigDecimal attribute13; // 预留字段13
    private BigDecimal attribute14; // 预留字段14
    private BigDecimal attribute15; // 预留字段15

    /**
     * TODO 获取日志表单名称
     * @return
     * @throws
     */
    @Override
	@Transient
    public String getLogFormName() {
        if (super.logFormName == null || super.logFormName.equals("")) {
            return "快捷键设置";
        } else {
            return super.logFormName;
        }
    }

    /**
     * TODO 获取日志标题
     * @return
     * @throws
     */
    @Override
	@Transient
    public String getLogTitle() {
        if (super.logTitle == null || super.logTitle.equals("")) {
            return "表单基本信息模块";
        } else {
            return super.logTitle;
        }
    }
}
